package Eyjafjalla.card.skill;

import Eyjafjalla.action.InheritAction;
import Eyjafjalla.action.PinkOceanAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class PinkOcean_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "PinkOcean_Eyjafjalla";
    private static final CardStrings cardStrings;

    public PinkOcean_Eyjafjalla(){
        super(ID, cardStrings.NAME,0,cardStrings.DESCRIPTION,CardType.SKILL,CardRarity.RARE,CardTarget.NONE);
        this.exhaust = true;
        this.baseMagicNumber = 3;
        this.magicNumber = 3;
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
    }

    @Override
    public AbstractCard makeCopy() {
        return new PinkOcean_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new PinkOceanAction(this.magicNumber,isFire()));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            upgradeMagicNumber(2);
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}

